package com.dushibao.web.menu;

import com.dushibao.service.MenuService;
import com.dushibao.service.impl.MenuServiceImpl;
import lombok.SneakyThrows;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/menu/list")
public class ListServlet extends HttpServlet {
    MenuService menuService = new MenuServiceImpl();

    @SneakyThrows
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)  {
        String ret = menuService.page();

        resp.getWriter().write(ret);
    }
}
